<?php

use common\helpers\ArrayHelper;
use yii\widgets\ActiveForm;
use common\helpers\Url;

$form = ActiveForm::begin([
    'id' => $model->formName(),
    'enableAjaxValidation' => true,
    'class' => 'form-horizontal',
    'validationUrl' => Url::to(['prompt', 'id' => $model['member_id']]),
    'fieldConfig' => [
        'template' => "<div class='col-sm-2 text-right'>{label}</div><div class='col-sm-10'>{input}\n{hint}\n{error}</div>",
    ]
]);
?>

    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">×</span></button>
            <h4 class="modal-title">警告平仓</h4>
        </div>
        <div class="modal-body">
            <div class="form-group field-member-price">
                <div class="col-sm-2 text-right"><label class="control-label" for="member-price">警告</label></div>
                <div class="col-sm-10">
                    <input type="text" id="member-price" class="form-control" name="prompt" value="0">
                    <div class="help-block"></div></div>
            </div>
             <div class="form-group field-member-price">
                <div class="col-sm-2 text-right"><label class="control-label" for="member-price">平仓</label></div>
                <div class="col-sm-10">
                    <input type="text" id="member-price" class="form-control" name="unwind" value="0">
                    <div class="help-block"></div></div>
            </div>

        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
            <button class="btn btn-primary" type="submit">完成</button>
        </div>
    </div>

<?php ActiveForm::end(); ?>